package com.ghw.neteasemusic.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应码枚举
 *
 * @author violet
 * @since 2021/11/27 23:56
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    /**
     * 成功
     */
    SUCCESS(2000, "ok"),
    /**
     * 失败
     */
    FAIL(4000, "fail"),
    ;

    /**
     * 响应码
     */
    private final int code;
    /**
     * 响应消息
     */
    private final String msg;
}
